package com.sumainfor.pc.cfo.feign.extend;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author PuaChen
 * @Create 2019-04-17 18:35
 */
public interface MarketFeign {

    /**
     * 通过姓名或者手机号查询租客id
     **/
    @GetMapping("/tenant/info/getTenantInfoByNameOrPhone")
    List<String> getTenantInfoByNameOrPhone(@RequestParam("keyWord") String keyWord);

    /**
     * 通过合同编号查询租客id
     **/
    @GetMapping("/tenant/info/getTenantInfoByPaId")
    List<String> getTenantInfoByPaId(@RequestParam("keyWord") String keyWord);

    /**
     * 通过姓名或者手机号查询业主id
     **/
    @GetMapping("/tenant/info/getOwnerIdByNameOrPhone")
    List<String> getOwnerIdByNameOrPhone(@RequestParam("keyWord") String keyWord);

    /**
     * 通过合同编号查询业主id
     **/
    @GetMapping("/tenant/info/getOwnerIdByPaId")
    List<String> getOwnerIdByPaId(@RequestParam("keyWord") String keyWord);
}
